/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package promogui;

import javax.swing.AbstractListModel;

public class RowHeaderListModel extends AbstractListModel
{
    private int size;

    public RowHeaderListModel(int size)
    {
        this.size = size;
    }

    public int getSize()
    {
        return size;
    }

    public void insertRow()
    {
        size++;
        fireIntervalAdded(this, size, size);
    }

    public void removeRow()
    {
        size--;
        fireIntervalRemoved(this, size, size+1);
    }
    
    public Object getElementAt(int index)
    {
        return "Woche " + (index+1);
    }
}
   
